﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Server
{
    /// <summary>
    /// Поолная информация о товаре
    /// </summary>
    [DataContract]
    public class ProductItemModel
    {
        /// <summary>
        /// Product item identifier
        /// </summary>
        [DataMember]
        public long Id { get; private set; }


        /// <summary>
        /// Product serial
        /// </summary>
        [DataMember]
        public string Serial { get; set; }


        /// <summary>
        /// Rpoduct status
        /// </summary>
        [DataMember]
        public ProductItemStatus Status { get; set; }


        /// <summary>
        /// Place identifier, where now product item 
        /// </summary>
        [DataMember]
        public int PlaceId { get; set; }

        /// <summary>
        /// Category identifier
        /// </summary>
        [DataMember]
        public long ProductId { get; set; }

        /// <summary>
        /// Oreder identifier, in which the product
        /// </summary>
        [DataMember]
        public long OrderId { get; set; }

        /// <summary>
        /// Product item constructor
        /// </summary>
        /// <param name="id">Identifier product item</param>
        public ProductItemModel(long id)
        {
            Id = id;
        }
    }
}
